package com.shangjinrong.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 借款人上传资源表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "borrower_attach")
public class BorrowerAttach {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 借款人id
     */
    @TableField(value = "borrower_id")
    private Long borrowerId;

    /**
     * 图片类型（idCard1：身份证正面，idCard2：身份证反面，house：房产证，car：车）
     */
    @TableField(value = "image_type")
    private String imageType;

    /**
     * 图片路径
     */
    @TableField(value = "image_url")
    private String imageUrl;

    /**
     * 图片名称
     */
    @TableField(value = "image_name")
    private String imageName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除(1:已删除，0:未删除)
     */
    @TableField(value = "is_deleted")
    @TableLogic
    private Boolean isDeleted;

    public static final String COL_ID = "id";

    public static final String COL_BORROWER_ID = "borrower_id";

    public static final String COL_IMAGE_TYPE = "image_type";

    public static final String COL_IMAGE_URL = "image_url";

    public static final String COL_IMAGE_NAME = "image_name";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_DELETED = "is_deleted";
}